package khs.java_mouse_setpos.main.java;

import java.awt.AWTException;
import java.awt.Robot;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args ) throws AWTException, NumberFormatException, IOException
    {
        System.out.print("input x: ");
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        int x = Integer.valueOf(bufferedReader.readLine());
        
        System.out.print("input y: ");
        bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        int y = Integer.valueOf(bufferedReader.readLine());
        
        Robot robot = new Robot();
        robot.mouseMove(x, y);
    }
}
